package com.ny.service;

import com.ny.entity.Device;
import java.util.List;
import java.util.Optional;

public interface DeviceService {
    // 查询所有设备
    List<Device> findAllDevices();
    // 添加设备
    Device saveDevice(Device device);

    // 根据device_id删除设备
    boolean deleteDeviceByDeviceId(Integer deviceId);

    // 根据device_id修改设备状态
    Optional<Device> updateDeviceStatus(Integer deviceId, Integer status);
}